<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GuidanceRecord extends Model
{
    protected $fillable = [
        'selection_id',
        'record_time',
        'content',
        'teacher_feedback',
    ];

    protected $casts = [
        'record_time' => 'datetime',
    ];

    public function topicSelection()
    {
        return $this->belongsTo(TopicSelection::class, 'selection_id');
    }
} 